package Decorator;

import Component.Component;

public class DecoratorFox1 extends Decorator{
    public DecoratorFox1(Component initComponent) {  //注入对象
        super(initComponent);
    }
    @Override
    public void operation(String outText){
        super.operation(outText);//调用装饰器方法
        AddBoldStyle();
    }

    private void AddBoldStyle() {
        System.out.println("挂载半主动雷达弹");
    }
}
